package com.cn.jx.manager.po;

import com.cn.jx.common.entity.BaseIdEntity;

import static com.jx.util.CodeUtil.getRandomId;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * <p>UserOrgJob 用户组织岗位关系表POJO类 对应数据库表名 SYS_USER_ORG_JOB
 * <p>实现<{@link Serializable <tt>序列化接口</tt>}
 * <p>实现<{@link BaseIdEntity <tt>BaseIdEntity</tt>}
 *  
 * @author <h1>jiangxu2  2019年11月21日</h1>
 * @version v1.11.20.2019
 * @since 1.0
 * 
 */
@Entity
@Table(name="SYS_USER_ORG_JOB")
public class UserOrgJob extends BaseIdEntity {
	private static final long serialVersionUID = -3722571693789325663L;
	
	/** <p>组织ID<p>设置为{@link String String}类型*/
	@Column(name="org_id",length=64)
	private String orgId;
	
	/** <p>岗位ID<p>设置为{@link String String}类型*/
	@Column(name="job_id",length=64)
	private String jobId;
	
	/** <p>员工ID<p>设置为{@link String String}类型*/
	@Column(name="user_id",length=64)
	private String userId;
	
	/** <p>是否主岗<p>设置为{@link Integer Integer}类型*/
	@Column(name="is_major")
	private Integer major;
	
	/** <p>初始化创建类 @return */
	public static UserOrgJob getInstance(){
		UserOrgJob m=new UserOrgJob();
		m.setId(getRandomId());
		return m;
	}

	/** <p>{@link String String}<p>getOrgId()*/
	public String getOrgId() {
		return orgId;
	}
	/** <p>{@link String String}<p>getJobId()*/
	public String getJobId() {
		return jobId;
	}
	/** <p>{@link String String}<p>getUserId()*/
	public String getUserId() {
		return userId;
	}
	/** <p>{@link Integer Integer}<p>getMajor()*/
	public Integer getMajor() {
		return major;
	}

	/** <p>setOrgId({@link String orgId})*/
	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}
	/** <p>setJobId({@link String jobId})*/
	public void setJobId(String jobId) {
		this.jobId = jobId;
	}
	/** <p>setUserId({@link String userId})*/
	public void setUserId(String userId) {
		this.userId = userId;
	}
	/** <p>setMajor({@link Integer major})*/
	public void setMajor(Integer major) {
		this.major = major;
	}
	
	
}
